<%@ page language="java" pageEncoding="UTF-8" import="java.sql.*, com.yiran.util.*" %>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title></title>
  </head>
  
  <body>
  	
  	<%
	String s=(String)request.getParameter("id");
	if(s!=null){

		int id = Integer.parseInt(s);;
		int flag = 1;
		String sql = "update orders set orderFlag="+ flag +" where id='" + id +"'";
		Connection conn = DBConnection.getConnection();
		PreparedStatement ps = conn.prepareStatement(sql);
		int ok = ps.executeUpdate();
		if(ok>0)
			out.print("<h1>订单处理成功！</h1>");
		else
			out.print("<h1>订单处理失败！</h1>");
	}
%>
     <br>
  </body>
</html>
